package com.wlc.base.sorting;

/**
 * @author 王立朝 wanglichao@champion-credit.com
 * @description
 * @date 2021-07-20 11:37
 */
public class Node {

    private Object data;

    private Node node;

    public Node(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "Node{" +
                "data=" + data +
                ", node=" + node +
                '}';
    }

    public static void main(String[] args) {
        Node node = new Node("zhangsan");
        node.node = new Node("lisi");
        node.node.node = new Node("liwu");
        System.out.println("node = " + node);
        System.out.println("node.node = " + node.node);
        System.out.println("node.node.node = " + node.node.node);

    }
}
